package com.bbm.communitysystem.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {


    @Bean
    public OpenAPI openAPI() {
        OpenAPI openAPI = new OpenAPI();

        Info info = new Info();

        Contact contact = new Contact();
        contact.setEmail("3611302925@qq.com");
        contact.setName("BBM");

        info.setContact(contact);

        info.setVersion("DEV_1.0");
        info.setDescription("update是上传者");

        openAPI.info(info);


        return openAPI;
    }

}
